<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>兄弟，群组选择器</title>
		<style>
			/*h2~span{
				background-color: #00ffff;
			}*/
			h1+span{
				background-color: #00ffff;
			}
			.s3,#s2,h1,h2,h1+span{
				background-color: #ff0000;
			}
		</style>
	</head>
	<body>
		<h2>通用兄弟选择器</h2>
		<span>lorem1</span>
		<span>lorem2</span>
		<span class="s3">lorem3</span>
		<h1>相邻兄弟选择器</h1>
		<span>lorem1</span>
		<span id="s2">lorem2</span>
		<span>lorem3</span>
	</body>
</html>